$OpenBSD: patch-link-bpf_c,v 1.3 2013/08/15 20:28:55 gsoares Exp $
--- link-bpf.c.orig	Sat Apr 27 05:39:08 2013
+++ link-bpf.c	Sun Aug 11 12:25:39 2013
@@ -96,6 +96,10 @@ get_hardware_address(const char *if_name, unsigned cha
  */
    for (p = buf; p < buf + len; p += ifm->ifm_msglen) {
       ifm = (struct if_msghdr *)p;
+
+      if (ifm->ifm_version != RTM_VERSION)
+         continue;
+
       sdl = (struct sockaddr_dl *)(ifm + 1);
 
       if (ifm->ifm_type != RTM_IFINFO || (ifm->ifm_addrs & RTA_IFP) == 0)
